package cn.jbit.oa136.pojo;


import java.util.HashSet;
import java.util.Set;

/**
 * Employee entity. @author MyEclipse Persistence Tools
 */

public class Employee implements java.io.Serializable {

	// Fields

	private String sn;
	private Department department;
	//private Integer positionId;
	private Position position;
	private String password;
	private String name;
	private String status;
	private Set claimVouchersForNextDealSn = new HashSet(0);
	private Set departments = new HashSet(0);
	private Set claimVouchersForCreateSn = new HashSet(0);

	// Constructors

	/** default constructor */
	public Employee() {
	}

	/** minimal constructor */
	public Employee(Department department,
			String password, String name, String status) {
		this.department = department;
		//this.positionId = positionId;
		this.password = password;
		this.name = name;
		this.status = status;
	}

	/** full constructor */
	public Employee(Department department,
			String password, String name, String status,
			Set claimVouchersForNextDealSn, Set departments,
			Set claimVouchersForCreateSn) {
		this.department = department;		
		this.password = password;
		this.name = name;
		this.status = status;
		this.claimVouchersForNextDealSn = claimVouchersForNextDealSn;
		this.departments = departments;
		this.claimVouchersForCreateSn = claimVouchersForCreateSn;
	}

	// Property accessors

	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public Department getDepartment() {
		return this.department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Set getClaimVouchersForNextDealSn() {
		return this.claimVouchersForNextDealSn;
	}

	public Position getPosition() {
		return position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}

	public void setClaimVouchersForNextDealSn(Set claimVouchersForNextDealSn) {
		this.claimVouchersForNextDealSn = claimVouchersForNextDealSn;
	}

	public Set getDepartments() {
		return this.departments;
	}

	public void setDepartments(Set departments) {
		this.departments = departments;
	}

	public Set getClaimVouchersForCreateSn() {
		return this.claimVouchersForCreateSn;
	}

	public void setClaimVouchersForCreateSn(Set claimVouchersForCreateSn) {
		this.claimVouchersForCreateSn = claimVouchersForCreateSn;
	}

}